/**
 * Created by Administrator on 2015/5/13.
 */
var model = require('./model').model;
var dao = require('./dao').PromiseDao;

dao.findOne(model.WidgetModel, {title: '新浪微博'}).then(function (doc) {
    if (!doc) {
        dao.create(model.WidgetModel, {
            title: '新浪微博',
            body: '<embed allowscriptaccess="never" allownetworking="internal" invokeurls="false" src="http://service.weibo.com/staticjs/weiboshow.swf?verifier=05eec98a&uid=1998817525&width=230&height=500&fansRow=2&isTitle=0&isWeibo=1&isFans=0&noborder=0&ptype=1&colors=cfe1f3,fafcff,444444,5093d5" pluginspage="http://www.macromedia.com/go/getflashplayer"type="application/x-shockwave-flash" quality="high" autostart="0" wmode="transparent" width="100%" height="500" align="middle">',
            footer: ''
        });
    }
});

